package me.zk.practice1.hw;

import java.util.Arrays;
import java.util.Scanner;

public class HWBJ36 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] nums = Arrays.stream(scanner.nextLine().split(" ")).mapToInt(Integer::parseInt).toArray();

        int x = 0;
        int y = 0;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < nums.length-1; i++) {
            for (int j = i+1; j < nums.length; j++) {
                if (Math.abs(nums[i] + nums[j]) < min) {
                    x = i;
                    y = j;
                    min = Math.abs(nums[i] + nums[j]);
                }
            }
        }
        System.out.println(nums[x] +" " + nums[y] + " " + min);
    }
}
